﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace DomainModel.Entities
{
    [Table(Name = "aspnet_Users")]
    public class User
    {
        [Column]
        public Guid ApplicationId { get; set; }

        [Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)]
        public Guid UserId { get; set; }
        
        [Column]
        public string UserName { get; set; }

        [Column]
        public string LoweredUserName { get; set; }

        [Column]
        public string MobileAlias { get; set; }

        [Column]
        public bool IsAnonymous { get; set; }

        [Column]
        public DateTime LastActivityDate { get; set; }
    }
}
